var vm = new Vue({
			el: '#carousel',
			data: {
				slideList: [{
					"clickUrl": "#",
					"image": "http://dummyimage.com/1745x492/f1d65b"
				}, {
					"clickUrl": "#",
					"image": "http://dummyimage.com/1745x492/40b7ea"
				}, {
					"clickUrl": "#",
					"image": "http://dummyimage.com/1745x492/f1d65b"
				}, {
					"clickUrl": "#",
					"image": "http://dummyimage.com/1745x492/40b7ea"
				}],
				currentIndex: 0,
				timer: ''
			},
			mounted: function() {
				this.$nextTick(function() {
					this.timer = setInterval(function() {
						vm.autoPlay()
					}, 3000)
				})
			},
			methods: {
				go: function() {
					this.timer = setInterval(function() {
						vm.autoPlay()
					}, 3000)
				},
				stop: function() {
					clearInterval(this.timer)
					this.timer = null
				},
				change: function(index) {
					this.currentIndex = index
				},
				autoPlay: function() {
					this.currentIndex++
						if(this.currentIndex > this.slideList.length - 1) {
							this.currentIndex = 0
						}
				}
			}
		})
